# 导包
from PIL import Image, ImageDraw

# 打开图片
img = Image.open('./static/upload/20130790.jpg')

# 生成画笔对象
draw = ImageDraw.Draw(img)
# 修改图片
draw.text((0, 0), '1906', fill=(76, 234, 124, 180))

# 查看图片
img.show()

# 存储图片
img.save('./static/upload/20130790.jpg')
